package pattern.factory.pizza

import pattern.factory.ingredient.PizzaIngredientFactory

/**
 * Created by root on 15-9-7.
 */
class ClamPizza(ingredientFactory:PizzaIngredientFactory) extends Pizza {
  override def prepare(): Unit = {
    println("Preparing" + name)
    dough = ingredientFactory.createDough()
    sauce = ingredientFactory.createSauce()
    cheese = ingredientFactory.createCheese()
    clams = ingredientFactory.createClams()
  }
}
